#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>

int main()
{
    double score[5] = { 0.0 };
    int i = 0;
    while (i < 5)
    {
        int j = 0;
        double sum = 0.0;
        while (j < 5)
        {
            scanf("%lf", &score[j]);
            sum += score[j];
            j++;
        }
        j = 0;
        while (j < 5)
        {
            printf("%.1lf ", score[j]);
            j++;
        }
        printf("%.1lf\n", sum);
        i++;
    }

    return 0;
}